//
//  ScanBarCodeViewController.h
//  SXH
//
//  Created by 房 国生 on 15/7/15.
//  Copyright (c) 2015年 lyss. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@protocol ScanBarCodeDelegate <NSObject>
- (void) pushScanResultInfo:(NSString *)url;
@end

@interface ScanBarCodeViewController : BaseViewController<AVCaptureMetadataOutputObjectsDelegate>
{
    int num;
    BOOL upOrdown;
    NSTimer * timer;
}

@property (assign) id<ScanBarCodeDelegate> delegate;
@property (strong,nonatomic)AVCaptureDevice * device;
@property (strong,nonatomic)AVCaptureDeviceInput * input;
@property (strong,nonatomic)AVCaptureMetadataOutput * output;
@property (strong,nonatomic)AVCaptureSession * session;
@property (strong,nonatomic)AVCaptureVideoPreviewLayer * preview;
@property (nonatomic, retain) UIImageView * line;

@end
